// stdafx.cpp : source file that includes just the standard includes
//	review_file.pch will be the pre-compiled header
//	stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

CString GetFileName(CString pathfile)
{
	CString file;
	int n, count;
	count = pathfile.GetLength();
	n = pathfile.ReverseFind('\\');
	if((count-n) >= 1)
		file = pathfile.Right(count - n - 1);
	else
		file = "";
	
	return file;
}

CString GetProjectPath()
{
	int     i = 0;
	char    szexefilepath[512] = _T("");
	GetModuleFileName(NULL, szexefilepath, 512);
	i = strlen(szexefilepath);
	while(szexefilepath[i] != '\\')
		szexefilepath[i --] = '\0';
	
	return szexefilepath;	
}
